class Student():
    count = 0
    def __init__(self,name,):
        self.name = name
        Student.count += 1

aa = Student('xiaohong')
print(Student.count)
bb = Student('xiaobai')
print(Student.count)